@extends('admin/layout/index')

@section('content')

@section('content')
	@if (count($errors) > 0)
	    <div class="mws-form-message error">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
 	<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>用户添加</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form class="mws-form" action="/admin/user/insert" method="post">
    		{{ csrf_field() }}
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">用户名(*必须填写)</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="username" value="{{ old('username') }}">
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">昵称</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="nickname" value="{{ old('nickname') }}">
                    </div>
                </div>
     			<div class="mws-form-row">
    				<label class="mws-form-label">用户密码(*必须填写)</label>
    				<div class="mws-form-item">
    					<input class="small" type="password" name="userpwd" value="{{ old('userpwd') }}">
    				</div>
    			</div>
      			<div class="mws-form-row">
    				<label class="mws-form-label">确认密码(*和密码一致)</label>
    				<div class="mws-form-item">
    					<input class="small" type="password" name="reuserpwd"
    					 value="{{ old('reuserpwd') }}">
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">邮箱</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="email" value="{{ old('email') }}">
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">电话(*要11位)</label>
                    <div class="mws-form-item">
                        <input class="small" type="text" name="tel" value="{{ old('tel') }}">
                    </div>
                </div>
    		</div>
    		<div class="mws-button-row">
    			<input value="提交" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset">
    		</div>
    	</form>
    </div>    	
</div>  
@endsection

@endsection